import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Axios from 'axios';

import store from './store'
import {postRequest} from './utils/api';
Vue.config.productionTip = false  // 关闭浏览器控制台关于环境的相关提示

Vue.use(ElementUI);  // 正式安装
// vue.prototype 挂载axios。以后组件this都可以用
Vue.prototype.$http = Axios;
console.log('axios挂载完成...')
Vue.prototype.postRequest = postRequest;


new Vue({
    router,
    store,
    render: h => h(App)  // 渲染app组件
}).$mount('#app')

